<div class="title-name">
	<h2>Tạo ứng dụng mới</h2>
</div>
<?php if(!empty($this->result)){?>
<?php if($this->result['status']==0){?>

<div class="alert alert-danger" role="alert">
	<ul>
        <?php foreach ($this->result['message'] as $r){?>
        <li><?php echo $r?></li>
        <?php }?>
    </ul>
</div>
<?php }?>
<?php }?>
<div>
	<ul id="tab-add-app" class="ifs-tabbar">
		<li class="complete">
			<div class="ifs-tab-nav">
				<a href="#name-app">Khai báo ứng dụng</a>
			</div>
		</li>
		<li class="complete">
			<div class="ifs-tab-nav">
				<a>Chọn loại ứng dụng</a>
			</div>
		</li>
		<li class="complete">
			<div class="ifs-tab-nav">
				<a>Thông tin mô tả</a>
			</div>
		</li>
		<li class="active">
			<div class="ifs-tab-nav">
				<a>Chọn thiết bị</a>
			</div>
		</li>
		<li>
			<div class="ifs-tab-nav">
				<a>Liên hệ</a>
			</div>
		</li>
	</ul>
</div>
<fieldset class="ifs_tab_cell">
	<legend>Bước 4: Chọn thiết bị</legend>
	<div class="tab-content-cell">
		<form enctype="multipart/form-data"
			action=""
			method="post" id="icon-form" class="form-horizontal">
			<div class="form-group">
				<label for="name-app" class="col-xs-3 control-label">Hệ điều hành</label>
				<div class="col-xs-5">
					<select class="form-control" id='os' name="os">
					</select>

				</div>

			</div>
			<div class="form-group">
				<label for="name-app" class="col-xs-3 control-label">Phiên bản</label>
				<div class="col-xs-5">
					<select class="form-control" id='osv' name="osv">
						<option>---------------</option>
					</select>
				</div>

			</div>
			<div class="form-group">
				<label for="name-app" class="col-xs-3 control-label">Thiết bị tương
					thích</label>
				<div class="col-xs-5">
					<select class="form-control" id='compatible' name='compatible'>
						<option>---------------</option>
					</select>
				</div>

			</div>
			<div class="form-group">
				<label for="name-app" class="col-xs-3 control-label">Danh mục</label>
				<div class="col-xs-5">
					<select class="form-control" id='cat' name='cat'>
					</select>
				</div>

			</div>

			<div class="form-group">
				<div class="col-xs-6 col-xs-offset-3">
					<input class="btn btn-default" type="reset" id="cancle-app"
						value="Hủy bỏ"> <input class="btn btn-success" type="submit"
						value="Bước tiếp theo">
				</div>
			</div>
		</form>
	</div>
</fieldset>

<div class="clearfix"></div>

<script type="text/javascript">
	$(function () {
		
		tinymce.init({
			fullpage_default_encoding: "UTF-8",
			menubar : false,
			entity_encoding : "raw",
			selector: "textarea#des_short_new",
			schema: "html5",
			toolbar: "bold italic | alignleft aligncenter alignright alignjustify",
			setup: function (editor) {
			    editor.on('keyup', function (e) {
			        $('#add-new-app-next').bootstrapValidator('revalidateField', 'des_short');
			    });
    		}
		});
		tinymce.init({
			fullpage_default_encoding: "UTF-8",
			menubar : false,
			entity_encoding : "raw",
			selector: "textarea#description_new",
			schema: "html5",
			toolbar: "bold italic | alignleft aligncenter alignright alignjustify",
			setup: function (editor) {
			    editor.on('keyup', function (e) {
			        $('#add-new-app-next').bootstrapValidator('revalidateField', 'description');
                });
    		}
		});
		
	});
</script>